<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素显示模式</title>
    <style>
        /*块级元素:display:block;
        特点:独占一行，可以修改宽高*/
        div {
            height: 100px;
            border: 2px solid #f00;
        }
        #d1 {
            width: 500px;
        }
        /*行内元素 display:inline;
        共处一行，无法设置宽高*/
        span {
            background-color: #ff0;
            width: 300px;
            height: 300px;
        }
        /*行内块:display:inline-block;
        可以共处一行，也可以设置宽高 */
        button,input {
            width: 350px;
            height: 350px;
        }
        #d3 {
            /*元素消失*/
            display: none;
        }
        .d5 {
            width: 300px;
            height: 300px;
            background-color: #f00;
            /*边框圆角,值越大，角越圆*/
            border-radius: 15px;
        }
        a {
            display: block;
            width: 132px;
            height: 40px;
            background-color: #0aa1ed;
            font-size: 20px;
            color: #fff;
            text-decoration: none;
            text-align: center;
            line-height: 40px;
            border-radius: 5px;
        }
    </style>
</head>
<body>
    <div id="d1"></div>
    <div></div>
    <div id="d3"></div>
    <hr>
    <span>123456789</span>
    <span>123456789</span>
    <span>123456789</span>
    <hr>
    <button>按钮</button>
    <input type="text">
    <input type="text">
    <hr>
    <div class="d5"></div>
    <hr>
    <a href="">查看详情</a>
</body>
</html>